body {
    margin: 0;
    padding: 20px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, #4834d4, #686de0);
    padding: 30px;
    text-align: center;
    color: white;
}

.header h1 {
    margin: 0 0 20px 0;
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.workshop-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.workshop-level, .success-rate, .experience {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.level-icon, .rate-icon, .exp-icon {
    font-size: 1.5em;
}

.level-text, .rate-text, .exp-text {
    font-size: 1.1em;
    font-weight: bold;
}

.crafting-section, .recipes-section, .inventory-section, .decompose-section, .workshop-upgrade-section, .statistics-section {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.crafting-section h2, .recipes-section h2, .inventory-section h2, .decompose-section h2, .workshop-upgrade-section h2, .statistics-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

.crafting-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.materials-area, .result-area {
    text-align: center;
}

.materials-area h3, .result-area h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.material-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.material-slot, .result-slot {
    width: 80px;
    height: 80px;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.3s ease;
}

.material-slot.filled, .result-slot.filled {
    border: 2px solid #3498db;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.material-slot:hover, .result-slot:hover {
    border-color: #3498db;
    transform: scale(1.05);
}

.item-icon {
    font-size: 1.5em;
    margin-bottom: 2px;
}

.item-name {
    font-size: 0.7em;
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

.item-count {
    font-size: 0.6em;
    color: #e74c3c;
    font-weight: bold;
}

.empty-slot, .empty-result {
    font-size: 2em;
    color: #bdc3c7;
}

.arrow-section {
    text-align: center;
}

.craft-arrow {
    font-size: 3em;
    color: #f39c12;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.craft-info {
    margin-top: 15px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.success-chance {
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 5px;
}

.craft-cost {
    color: #f39c12;
    font-weight: bold;
}

.result-slot {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.item-rarity {
    font-size: 0.6em;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

.item-rarity.common {
    background: #95a5a6;
    color: white;
}

.item-rarity.uncommon {
    background: #27ae60;
    color: white;
}

.item-rarity.rare {
    background: #3498db;
    color: white;
}

.item-rarity.epic {
    background: #9b59b6;
    color: white;
}

.item-rarity.legendary {
    background: #f39c12;
    color: white;
}

.item-rarity.mythic {
    background: #e74c3c;
    color: white;
}

.recipe-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.category-tab {
    padding: 10px 20px;
    background: #ecf0f1;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.category-tab:hover {
    background: #d5dbdb;
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.recipe-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.recipe-card.common {
    border-color: #95a5a6;
}

.recipe-card.uncommon {
    border-color: #27ae60;
}

.recipe-card.rare {
    border-color: #3498db;
}

.recipe-card.epic {
    border-color: #9b59b6;
}

.recipe-card.legendary {
    border-color: #f39c12;
}

.recipe-card.mythic {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff, #ffe6e6);
}

.recipe-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.recipe-icon {
    font-size: 2em;
}

.recipe-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
}

.recipe-materials {
    margin-bottom: 15px;
}

.materials-title {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: bold;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.material-icon {
    font-size: 1.2em;
}

.material-name {
    flex: 1;
    color: #34495e;
}

.material-count {
    color: #e74c3c;
    font-weight: bold;
}

.recipe-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.8em;
}

.base-success-rate, .workshop-bonus, .final-success-rate {
    margin-bottom: 2px;
}

.base-success-rate {
    color: #7f8c8d;
}

.workshop-bonus {
    color: #27ae60;
}

.final-success-rate {
    color: #e74c3c;
    font-weight: bold;
}

.recipe-description {
    color: #7f8c8d;
    font-size: 0.9em;
    line-height: 1.4;
    font-style: italic;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.inventory-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inventory-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.inventory-item.common {
    border-color: #95a5a6;
}

.inventory-item.uncommon {
    border-color: #27ae60;
}

.inventory-item.rare {
    border-color: #3498db;
}

.inventory-item.epic {
    border-color: #9b59b6;
}

.inventory-item.legendary {
    border-color: #f39c12;
}

.inventory-item.mythic {
    border-color: #e74c3c;
}

.decompose-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.decompose-slot {
    width: 120px;
    height: 120px;
    border: 2px dashed #bdc3c7;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.3s ease;
}

.decompose-slot.filled {
    border: 2px solid #e74c3c;
    background: linear-gradient(135deg, #ffeaea, #ffcccb);
}

.empty-decompose {
    color: #bdc3c7;
    text-align: center;
    font-size: 0.9em;
    line-height: 1.2;
}

.decompose-arrow {
    font-size: 3em;
    color: #e74c3c;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.decompose-results {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.results-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.result-icon {
    font-size: 1.2em;
}

.result-name {
    flex: 1;
    color: #34495e;
}

.result-count {
    color: #27ae60;
    font-weight: bold;
}

.result-chance {
    color: #f39c12;
    font-size: 0.8em;
}

.upgrade-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.current-level, .next-level {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.level-display {
    margin-bottom: 15px;
}

.level-number {
    font-size: 3em;
    font-weight: bold;
    color: #3498db;
    line-height: 1;
}

.level-label {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 5px;
}

.level-benefits {
    margin-bottom: 15px;
}

.benefit-item {
    color: #27ae60;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: bold;
}

.upgrade-arrow {
    font-size: 2.5em;
    color: #f39c12;
}

.upgrade-cost {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.cost-title {
    font-size: 0.8em;
    margin-bottom: 5px;
    opacity: 0.9;
}

.cost-amount {
    font-size: 1.1em;
    font-weight: bold;
}

.experience-bar {
    background: #ecf0f1;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.exp-fill {
    background: linear-gradient(90deg, #3498db, #2980b9);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.exp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
    background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .workshop-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .crafting-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .material-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recipe-categories {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .decompose-area {
        flex-direction: column;
        gap: 20px;
    }
    
    .upgrade-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}